﻿using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class GlobalController : BaseController {

    ///////////////////////////////////////////////////////////////////////////

    protected override void InitData()
    {
        base.InitData();

        // 不销毁本对象
        GameObject.DontDestroyOnLoad(gameObject);
    }

    protected override void InitView()
    {
        base.InitView();

        // 跳到主界面
        SceneManager.LoadScene("Main");
    }
}
